
/**
 * @date 1:31:28 PM
 * EducationHomeworkQuestion.java
 * Administrator
 * TODO
 */
package com.qs.education.bean.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;

/**
 * @class EducationHomeworkQuestion	
 * @author Warren
 * @description
 * @date Nov 15, 2018 
 */
@Entity
@Table(name="education_homework_question")
@Getter
@Setter
public class EducationHomeWorkQuestion {
	@Id
	@Column(name="id" ,unique=true,nullable=false)
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;
	
	@ManyToOne
	@JoinColumn(name="question_id")
	@JsonIgnoreProperties(value = { "lesson","homeWorkQuestionList"})
	private EducationQuestion question;
	
	@ManyToOne
	@JoinColumn(name="homework_id")
	@JsonIgnoreProperties(value = { "group","teacher","homeWorkQuestionList"})
	private EducationHomeWork homework;

}

